Je bénis le jour où j'ai écris cet article !
Publier un paquet sur npm est super simple... Impressionnant. je viens de le faire pour Qompoter.
git reflog
git reset HEAD@{index before the amend}
git commit ...
When adding some files to INSTALLS, they are stripped if they are excecutables.
To avoid using strip, you can update "QMAKE_STRIP" variable and force stripping executables one by one using ".extra":
target.extra = strip $${DESTDIR}/$(TARGET)
QMAKE_STRIP = echo # Avoid striping unwanted files (which will not work)
applibs.files = $${DESTDIR}/*.so*
applibs.path = $$EXPORT_LIBPATH
INSTALLS += applibs
Gah ! Dire que je cherche depuis hier...
systemctl stop firewalld ; pkill -f firewalld ; systemctl start firewalld
Si l'avenir ne dépendait que des utilisateurs et des développeurs, je rejoindrais pleinement Eric Elliot sur ce sujet "Native Apps are Doomed". Mais il faut aussi compter sur les fournisseurs de plateformes.
En tout cas, si en 2010 faire une Web app riche était un peu compliqué, cela semble beaucoup plus envisageable aujourd'hui. J'ai hâte d'avoir l'occasion d'essayer.
Notamment :
Un autre post sur les QThread.
Hier, j'ai releasé la v0.2.6 de Qompoter, a C++/Qt dependency manager. Outre les améliorations apportées au truc (recherche récursive des paquets, numéros de versions flous du genre v1.*, recherche des paquets dans Inqlude), cela m'a aussi permis de découvrir les scripts d'auto-complémetion Bash ! Et je surkiffe taper qompoter tab tab
et voir la liste des actions possibles apparaître "install export inqlude jsong". C'est beau Linux.
Qompoter a atteint un niveau de maturité suffisant pour les petits projets, alors n'hésitez pas ! Vos retours sont les bienvenues.
curl -H 'PUT /api/charge/authentication HTTP/1.1' -H 'Host: localhost:15107' -H 'Accept: application/vnd.PCCom-v2.0+json' -H 'Content-Type: application/vnd.PCCom-v2.0+json' -X PUT -d '{"state":"AUTHENTICATION_NOT_REQUIRED"}' localhost:15107/api/charge/authentication
Something wrong
git reflog
# you will see a list of every thing you've done in git, across all branches!
# each one has an index HEAD@{index}
# find the one before you broke everything
git reset HEAD@{index}
# magic time machine
I accidentally committed to the wrong branch!
# undo the last commit, but leave the changes available
git reset HEAD~ --soft
git stash
# move to the correct branch
git checkout name-of-the-correct-branch
git stash pop
git add . # or add individual files
git commit -m "your message here"
# now your changes are on the correct branch
Oui, quelqu'un paie un nom de domaine chaque année pour ça. Merci quand même :-)
Très pratique le fichier .qmake.conf.